package com.enki.cigarettes.enums;

/**
 * @author Glory
 * @version 1.0
 * @time 2019-01-23 15:44
 * @Description TODO 积分相关的枚举
 */
public class IntegralEnums {
    /**
     * 积分类型
     * 0:固定积分，
     * 1:比例获取(‰),
     * 2:订单消费相关
     */
    public enum IntegraType {
        FIXED_SCORE("固定积分", 0), FIXED_RATIO("固定比例", 1), ORDER_PRICE("订单金额", 2);

        private String name;
        private int type;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        IntegraType(String name, int type) {
            this.name = name;
            this.type = type;
        }}

}
